#include <stdio.h>
#include <wchar.h>
#include <stdlib.h>
#include "Includes/Color.h"
#include "Includes/Matrix.h"
#include "Includes/Rectangle.h"
#include "Includes/Font.h"
#include <ft2build.h>
#include FT_FREETYPE_H
#include <unistd.h>

/// <summary>
/// Locals
/// </summary>
static FT_Library library;

/// <summary>
/// TODO
/// </summary>
int IntFontsInit(void)
{
	/* Freetype Startup */
	if (FT_Init_FreeType(&library) != 0)
		return -1;

	return 0;
}

/// <summary>
/// Resize the scale of
/// the active Face object.
/// </summary>
int FONTSetFaceSize(void* pface, int width, int height)
{/*
	FT_Face* face;
	if ((face = (FT_Face*)pface) == NULL)
		return -1;

	if (FT_Set_Pixel_Sizes(*face, width, height) != 0)
		return -2;
*/
	return 0;
}

/// <summary>
/// TODO
/// </summary>
int IntFontsExit(void)
{
	/* Freetype Shutdown */
	if (FT_Done_FreeType(library) != 0)
		return -1;

	return 0;
}

/// <summary>
/// TODO
/// </summary>
int GalCreateFontFromFile(const wchar_t *path)
{
	return 0;
}
